package com.lg.atp.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lg.atp.entity.TblRoleInfo;

public interface RoleDao {
	
	List<TblRoleInfo> getAllRole();
	
	TblRoleInfo findRoleById(Long id);
	
	List<TblRoleInfo> findUserRole(Long userId);
	
	void insertRole(TblRoleInfo role);
	
	void updateRole(TblRoleInfo role);
	
	List<TblRoleInfo> getRoleByMenuId(Long menuId);
	
	List<TblRoleInfo> getRoleByUserId(Long userId);
	
	
	void delRole(@Param("ids")List<Long> ids);
	
	
}
